<?php
/**
 * Created By wujie
 * Author: Virus
 * Date: 2020/4/7
 * Time: 16:00
 */

namespace think;

define('APP_PATH', __DIR__ . '/../application/');

// 判断是否安装FastAdmin
if (!is_file(APP_PATH . 'admin/command/Install/install.lock'))
{
    header("location:./install.php");
    exit;
}

// 加载基础文件
require __DIR__.'/../thinkphp/base.php';

// 执行应用并响应
Container::get('app')->bind('admin')->run()->send();